package DesignPattern.Behavior.Command;

public class Client {
    public static void main(String[] args) {
        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFoodDir("西红柿鸡蛋面", 1);
        order1.setFoodDir("小杯可乐", 2);

        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFoodDir("尖叫肉丝盖饭", 1);
        order2.setFoodDir("小份薯条", 5);

        SeniorChef receiver = new SeniorChef();
        OrderCommand cmd1 = new OrderCommand(receiver, order1);
        OrderCommand cmd2 = new OrderCommand(receiver, order2);

        Waitor waitor = new Waitor();
        waitor.setCommands(cmd1);
        waitor.setCommands(cmd2);

        waitor.orderUp();
    }
}
